package org.cunamas.core.dto.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.cunamas.core.dto.ReporteTotalWwComFam3Dto;
import org.springframework.jdbc.core.RowMapper;

public class ReporteTotalWwComFam3Mapper  implements
		RowMapper<ReporteTotalWwComFam3Dto> {

	public ReporteTotalWwComFam3Dto mapRow(ResultSet rs, int row)
			throws SQLException {
		ReporteTotalWwComFam3Dto dto = new ReporteTotalWwComFam3Dto(); 
		dto.setTotFam(rs.getInt(1));
		dto.setTotCom(rs.getInt(2));
		dto.setPeriodo(rs.getString(3));
		return dto;
	}

}
